<?php

class Main extends CI_Controller {

	function __construct()
	{
		parent::__construct();
		if (!$this->session->userdata('name'))
		{
			header("Location: /");
		}
	}
	
	function index() {
		$data['sidebar'] = array('welcome','welcome');
		$data['query'] = '';
		load_view('main',$data);
	}
}